using CoreProject.IRepository;
using CoreProject.IService;
using CoreProject.Model;

namespace CoreProject.Service
{
  internal class RolesService : BaseService<Role>, IRolesService
  {
    private readonly IRolesRepoistory _repoistory;

    public RolesService(IRolesRepoistory repoistory):base(repoistory) 
    {
      _repoistory = repoistory;
    }
    public async Task<(List<Role> list,int count)> GetRoleBypage(string name, int page, int size)
      {
           return await _repoistory.GetRoleBypage(name, page, size);
     }
    }
}
